clear all
set more off
	
global dir = "C:\Users\mrueda\Documents\Emory\Papers\Networks_persistance\do_files\do_files_APSA21\post_JOP\Replication_BJPS\"	

cd "$dir"

use "Data\cand_level_persist_rep.dta",clear

*figure1
rdplot nfcontract margin_victory, p(3)
rdplot fcontract margin_victory, p(3)


*Figure D2a
rdplot donate_15any margin_victory ,  binselect(qsmv) p(3)
*Figure D2b
rdplot b5 margin_victory ,  binselect(qsmv) p(3)

*Figure D4a
rdplot nfcontract margin_victory ,  binselect(qsmv) p(3)
*Figure D4b
rdplot fcontract margin_victory ,  binselect(qsmv) p(3)
*Figure D4c
rdplot fgot_above_ext margin_victory ,  binselect(qsmv) p(3)
*Figure D4d
rdplot fruns_any margin_victory ,  binselect(qsmv) p(3)

*Figure D6a
rdplot fdonate_15any margin_victory ,  binselect(qsmv) p(3)
*Figure D6b
rdplot nfdonate_15any margin_victory ,  binselect(qsmv) p(3)
*Figure D6c
rdplot fb5 margin_victory ,  binselect(qsmv) p(3)
*Figure D6d
rdplot nfb5 margin_victory ,  binselect(qsmv) p(3)